package com.hlkj.pay.infrastructure.model.order;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hlkj.framework.mybatis.core.dataobject.BaseDO;
import com.hlkj.pay.enums.PayOrderEnums;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author HlpayTeam
 * @date 2024/10/10 13:22
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("t_order_subsidy_detail")
public class OrderSubsidyDetailDO extends BaseDO {

	@Schema(description = "出资方账号")
	private String accountNo;

	@Schema(description = "补贴金额")
	private BigDecimal amount;

	/**
	 * 营销状态
	 * @see PayOrderEnums.PAY_ORDER_SUBSIDY_STATUS
	 */
	@Schema(description = "补贴状态，0=初始化 1=进行中，2=成功，3=失败")
	private Integer subsidyStatus;
	/**
	 * 补贴完成时间
	 */
	@Schema(description = "补贴完成时间")
	private Long successTime;


	@Schema(description = "平台补贴单号")
	private String outOrderNo;
	/**
	 * 机构补贴单号
	 */
	@Schema(description = "机构补贴单号")
	private String orderNo;

	/**
	 * 补贴失败原因
	 */
	@Schema(description = "补贴失败原因")
	private String failReason;
	/**
	 * 补贴批次号
	 */
	@Schema(description = "补贴批次号")
	private String batchNo;
	/**
	 * 补贴批次号
	 */
	@Schema(description = "子补贴批次号")
	private String batchNoDetail;




}
